home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / PHP / include / php / ext / standard / reg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-26  |  2.0 KB  |  61 lines

  1. /* 
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2001 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
  16.    +----------------------------------------------------------------------+
  17. */
  18.  
  19.  
  20. /* $Id: reg.h,v 1.11 2001/02/26 06:07:23 andi Exp $ */
  21.  
  22. #ifndef REG_H
  23. #define REG_H
  24.  
  25. char *php_reg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended);
  26.  
  27. PHP_FUNCTION(ereg);
  28. PHP_FUNCTION(eregi);
  29. PHP_FUNCTION(eregi_replace);
  30. PHP_FUNCTION(ereg_replace);
  31. PHP_FUNCTION(split);
  32. PHP_FUNCTION(spliti);
  33. PHPAPI PHP_FUNCTION(sql_regcase);
  34.  
  35. typedef struct {
  36.     HashTable ht_rc;
  37. } php_reg_globals;
  38.  
  39. PHP_MINIT_FUNCTION(regex);
  40. PHP_MSHUTDOWN_FUNCTION(regex);
  41. PHP_MINFO_FUNCTION(regex);
  42.  
  43.  
  44. #ifdef ZTS
  45. #define REGLS_D php_reg_globals *reg_globals
  46. #define REGLS_DC , REGLS_D
  47. #define REGLS_C reg_globals
  48. #define REGLS_CC , REGLS_C
  49. #define REG(v) (reg_globals->v)
  50. #define REGLS_FETCH() php_reg_globals *reg_globals = ts_resource(reg_globals_id)
  51. #else
  52. #define REGLS_D
  53. #define REGLS_DC
  54. #define REGLS_C
  55. #define REGLS_CC
  56. #define REG(v) (reg_globals.v)
  57. #define REGLS_FETCH()
  58. #endif
  59.  
  60. #endif /* REG_H */
  61.